<div class="sidebar-right">
    <!--标题-->
    <div class="sidebar-right-title">
        <div class="sidebar-right-title-l">项目管理</div>
        <div class="clear"></div>
    </div>
    <!--标题结束-->
    <!--详细内容-->
    <div class="engine-tab-content project-management">
        <!--搜索-->
        <div class="engine-test-manage engine-business">
            <div class="engine-test-manage-l">
                <input type="text" placeholder="项目名" class="project-name" ng-model="project.projectName" ng-keyup="myKeyup($event)">
                <i class="engine-delete" ng-show="removeShow" ng-click="deleteInput()" style="position:absolute;right:10px;top:1px;color:#999;"><img src="/static/images/close.png"></i>
            </div>
                <button type="button" class="engine-btn-default"ng-click="actions.search()" style="margin-left: 10px">查询</button>
            <div class="engine-test-manage-r">
                <button type="button" class="engine-btn-default" ng-click="actions.openEditView()"><i class="icon-engine-plus"></i>新增</button>
            </div>
            <div class="clear"></div>
        </div>
        <!--搜索结束-->
        <!--表格-->
        <g-data-source url="/grule-manager/projects" allow-auto-load="true" page="true" data-source-name="ProjectDataSource"></g-data-source>
        <div>
            <g-data-grid data-source-name="ProjectDataSource"
                         data-on-load-success="empGridSuccess(grid, source)"
                         data-checked-rows="empCheckedRows"
                         g-height="291">
                <g-column width="20%" data="projectName" >
                项目名
                </g-column>
                <g-column width="200" data="projectCode">
                    项目编码
                </g-column>
                <g-column data="remark" >项目简介</g-column>
                <g-column width="400">
                    操作
                    <g-column-tmpl>
                        <a class="btn icon-engine-edit" title="编辑" ng-click="actions.openEditView(row)"></a>
                        <a class="btn icon-engine-delete" title="删除" ng-click="actions.deleteProject(row.id)"></a>
                        <a class="btn" ng-click="actions.authority(row.id,2)" title="能查看监控,审核规则">运维授权</a>
                        <a class="btn" ng-click="actions.authority(row.id,1)" title="能浏览项目,并操作规则包">操作人授权</a>
                        <a class="btn" ng-click="actions.authority(row.id,0)" title="能浏览项目,操作项目和规则包">管理员授权</a>
                        <a class="btn" ng-click="actions.openChildView(row.id)" >增加子项目</a>

                    </g-column-tmpl>
                </g-column>
            </g-data-grid>
            <g-pagination-navi source-name="ProjectDataSource" refreshable="true"></g-pagination-navi>
            <g-pagination-size source-name="ProjectDataSource"></g-pagination-size>
        </div>
    </div>
</div>